﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;

namespace QuanLyDoiXe.Lop_du_lieu
{
    public class lop_ket_noi
    {
        public static string ketnoi = "Data Source=ACER;Initial Catalog=quanlydoixevinamilk;Integrated Security=True";
        static public SqlConnection conn;
        public static string chuoiketnoi()
        {
            return ketnoi;
        }

        public static void thietlapketnoi() //SqlConnection thietlapketnoi()
        {
            try
            {
                conn = new SqlConnection(ketnoi);
                conn.Open();
            }
            catch {};
        }
        public static void huyketnoi()
        {
            conn.Close();
        }
    }
}
